package com.ntl.webcore.system.business.service.impl;

import java.util.List;
import com.ntl.webcore.common.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ntl.webcore.system.business.mapper.SysErrorLogMapper;
import com.ntl.webcore.system.business.domain.SysErrorLog;
import com.ntl.webcore.system.business.service.ISysErrorLogService;
import com.ntl.webcore.common.core.text.Convert;

/**
 * 21.错误日志Service业务层处理
 * 
 * 
 * @date 2021-03-31
 */
@Service()
public class SysErrorLogServiceImpl implements ISysErrorLogService 
{
    @Autowired
    private SysErrorLogMapper sysErrorLogMapper;

    /**
     * 查询21.错误日志
     * 
     * @param id 21.错误日志ID
     * @return 21.错误日志
     */
    @Override
    public SysErrorLog selectSysErrorLogById(String id)
    {
        return sysErrorLogMapper.selectSysErrorLogById(id);
    }

    /**
     * 查询21.错误日志列表
     * 
     * @param sysErrorLog 21.错误日志
     * @return 21.错误日志
     */
    @Override
    public List<SysErrorLog> selectSysErrorLogList(SysErrorLog sysErrorLog)
    {
        return sysErrorLogMapper.selectSysErrorLogList(sysErrorLog);
    }

    /**
     * 新增21.错误日志
     * 
     * @param sysErrorLog 21.错误日志
     * @return 结果
     */
    @Override
    public int insertSysErrorLog(SysErrorLog sysErrorLog)
    {
        sysErrorLog.setId(IdUtils.fastSimpleUUID());
        return sysErrorLogMapper.insertSysErrorLog(sysErrorLog);
    }

    /**
     * 修改21.错误日志
     * 
     * @param sysErrorLog 21.错误日志
     * @return 结果
     */
    @Override
    public int updateSysErrorLog(SysErrorLog sysErrorLog)
    {
        return sysErrorLogMapper.updateSysErrorLog(sysErrorLog);
    }

    /**
     * 删除21.错误日志对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysErrorLogByIds(String ids)
    {
        return sysErrorLogMapper.deleteSysErrorLogByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除21.错误日志信息
     * 
     * @param id 21.错误日志ID
     * @return 结果
     */
    @Override
    public int deleteSysErrorLogById(String id)
    {
        return sysErrorLogMapper.deleteSysErrorLogById(id);
    }
}
